import { Switch, Redirect, Route } from 'react-router-dom'
import React, { Component, Suspense, lazy } from 'react'

const Home = lazy(() => import('./views/Home'))
function App() {
  return (
    <Suspense fallback={<div>Loading...</div>}>
      <Switch>
        <Route exact path="/" component={Home} />
        <Redirect to="/" />
      </Switch>
    </Suspense>
  )
}

export default App
